package com.qixin.api.service;

import com.baomidou.mybatisplus.service.IService;
import com.qixin.api.bean.ComUser;
import com.qixin.api.bean.ResultPage;
import com.qixin.api.bean.VoPage;
import com.qixin.api.bean.pojo.WelcomCount;

import javax.servlet.http.HttpSession;
import java.sql.SQLException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 冯政尚
 * @since 2018-10-25
 */
public interface ComUserService extends IService<ComUser> {
    public String SendSMS(Long phone);
     public boolean equalsCache(String code,String callPhone);
    boolean login(ComUser comUser, HttpSession session);
     boolean registerUser(ComUser comUser,String param);
    //密码修改
    boolean update(ComUser comUser, HttpSession session);
    ResultPage<ComUser> findUserAndRole( VoPage voPage,ComUser comUser);
    //删除用户和角色关联
    String deleteUser(Long id) throws SQLException;
    //首页板块同ing及
      WelcomCount findWelcomCount();
}
